#include <iostream>
#include <iomanip>
#include "Bai11.h"
using namespace std;

Bai11::Bai11(double x, double y, double xSpeed, double ySpeed) : x(x), y(y), xSpeed(xSpeed), ySpeed(ySpeed) { }

double Bai11::getX() const{
	return x;
}
void Bai11::setX(double x){
	this->x = x;
}

double Bai11::getY() const{
	return y;
}
void Bai11::setY(double y){
	this->y = y;
}

double Bai11::getXSpeed() const{
	return xSpeed;
}
void Bai11::setXSpeed(double xSpeed){
	this->xSpeed = xSpeed;
}

double Bai11::getYSpeed() const{
	return ySpeed;
}
void Bai11::setYSpeed(double ySpeed){
	this->ySpeed = ySpeed;
}

void Bai11::setXY(double x, double y){
	this->x = x;
	this->y = y;
}

void Bai11::setXYSpeed(double xSpeed, double ySpeed){
	this->xSpeed = xSpeed;
	this->ySpeed = ySpeed;
}

void Bai11::move(){
	x += xSpeed;
	y += ySpeed;
}

void Bai11::print() const{
	cout << fixed << setprecision(2);
	cout << "Bai 11 @ (" << x << "," << y << ") with speed (" << xSpeed << "," << ySpeed << ")" << endl;
}
